﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="Business.WebForm2" %>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:DataList ID="DataList1" runat="server" Width="100%" RepeatColumns="3" 
        style="text-align: center" DataKeyField="ProductID">
        <ItemTemplate>
            <asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("productName") %>' 
                NavigateUrl='<%# "ProductDetails.aspx?id=" + Eval("ProductID") %>'></asp:HyperLink>
            <br />
            <asp:Image ID="Image1" runat="server" 
                ImageUrl='<%# "~/hinhanh/"+ Eval("ProductImage")  %>' 
                AlternateText='<%# Eval("ProductDescription") %>' 
                ToolTip='<%# "Author: " + Eval("Author") %>' Width="150px" Height="160px" />
            <br />
            <br />
            <asp:Label ID="Label1" runat="server" Text='<%# "$ " +Eval("UnitPrice") %>' 
                style="font-size: 13px; color: #FF0000; font-weight: 700"></asp:Label>
            <asp:ImageButton ID="ImageButton1" runat="server" 
                AlternateText='<%# Eval("ProductDescription") %>' 
                ImageUrl="book_store/images/cart.gif" oncommand="ImageButton1_Command"  CommandName='<%#Eval("ProductID")%>'
                 />
            <br />
            <br />
        </ItemTemplate>
    </asp:DataList>
</asp:Content>
